// pages/components/templateItem/index.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    item: {
      type: Object,
      value: {
        browseCount: 0,
        coverPic: '',
        likeCount: 0,
        dsgnName: '',
        userName: '',
        headImg: ''
      }
    },
    // 展示 720 漫游
    showTips: {
      type: Boolean,
      value: true
    },
    showTag:{
      type: Boolean,
      value: false
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    gotoKujiale: function (e) {
      const item = e.currentTarget.dataset.item
      if (item.roamUrl.length > 0) {
        wx.navigateTo({
          url: `/pages/webView/pagePreview?roamUrl=${encodeURIComponent(item.roamUrl)}`
        })
      } else {

      }
    }
  }
})
